package com.bwie.exception;


import com.bwie.pojo.Result;

/**
 * 程序员自定义异常类
 */
public class CustomException extends RuntimeException {

    //向result中填充数据
    private Result result;

    public CustomException(int statusCode,String message){
        this.result =  new Result(statusCode,message,false);
    }

    public Result getResult() {
        return result;
    }

}
